<div class="page">
    <div class="hd">
        <h1 class="page_title">  文章管理 </h1>
    </div>
    <div class="bd">

        <div class="bd">
            <div class="weui_cells_access weui_cells">
                <a class="weui_cell" href="article_add">
                    <div class="weui_cell_bd weui_cell_primary">
                        <p>
                            新增文章
                        </p>
                    </div>
                    <div class="weui_cell_ft"></div>
                </a>
                <a class="weui_cell" href="article_manage">
                    <div class="weui_cell_bd weui_cell_primary">
                        <p>
                            文章列表
                        </p>
                    </div>
                    <div class="weui_cell_ft"></div>
                </a>
            </div>
            <div class="weui_cells_title">
                我发布的文章
            </div>
        <div class=" weui_cells_access">

            <?php foreach($articles as $article){?>
            <div class="weui_cells">
                <a class="weui_cell" >
                    <div class="weui_cell_bd weui_cell_primary">
                        <p>
                            <?php t_($article->title);?>
                        </p>
                        <p style="text-align: right;padding: 15px;">
                            <a href="/s/<?php t_($article->code);?>" class="weui_btn weui_btn_mini weui_btn_primary">测试</a>
                            <a href="article_delete?id=<?php t_($article->id);?>" class="weui_btn weui_btn_mini weui_btn_warn">删除</a>
                        </p>
                    </div>
                </a>
            </div>


            <?php }?>
    </div>
</div>